package com.training1.core.entity;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.training1.core.common.entity.DataEntity;

@Alias("TodayMoney")
public class TodayMoneyEntity extends DataEntity{
	
	private static final long serialVersionUID = -348179059019539374L;
	
	private String customerName;//客户姓名
	
	private String orgName;//公司名
	
	private String customerPhone;//客户电话
	
	private BigDecimal exoAmount;//拟借金额
	
	private Date appDate;//申请日期
	
	private String appDateStr;
	
	private int approvalCyc;//服务期数
	
	private String status;//合同状态
	
	private String statusStr;
	
	private String recom;//推荐人
	
	private String underCompany;//公司Id

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getCustomerPhone() {
		return customerPhone;
	}

	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}

	public BigDecimal getExoAmount() {
		return exoAmount;
	}

	public void setExoAmount(BigDecimal exoAmount) {
		this.exoAmount = exoAmount;
	}

	public Date getAppDate() {
		return appDate;
	}

	public void setAppDate(Date appDate) {
		this.appDate = appDate;
		if(appDate!=null){
			String format=new SimpleDateFormat("yyyy-MM-dd").format(appDate);
			this.setAppDateStr(format);
		}
	}

	public String getAppDateStr() {
		return appDateStr;
	}

	public void setAppDateStr(String appDateStr) {
		this.appDateStr = appDateStr;
	}

	public int getApprovalCyc() {
		return approvalCyc;
	}

	public void setApprovalCyc(int approvalCyc) {
		this.approvalCyc = approvalCyc;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatusStr() {
		return statusStr;
	}

	public void setStatusStr(String statusStr) {
		this.statusStr = statusStr;
	}

	public String getRecom() {
		return recom;
	}

	public void setRecom(String recom) {
		this.recom = recom;
	}

	public String getUnderCompany() {
		return underCompany;
	}

	public void setUnderCompany(String underCompany) {
		this.underCompany = underCompany;
	}
	
	
	
	

}
